package gui;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.Rectangle;
import java.io.File;

import javax.swing.JPasswordField;
import javax.swing.JRootPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
import javax.swing.JRadioButton;
import javax.swing.ImageIcon;
import javax.swing.JTextField;

import code.Settings;

public class GeneralEncryptionMode extends JFrame {
		
	
	Color c= new Color(0x80, 0x80, 0xFF);

	private static final long serialVersionUID = 1L;

	private JPanel jContentPane = null;

	private JLabel jLabel = null;
	
	Object[] modes = {"ECB", "CBC", "CFB", "OFB"};
	private Settings s;

	/**
	 * This is the default constructor
	 */
	public GeneralEncryptionMode() {
		super();
		s = new Settings();
		initialize();
	    this.setUndecorated(true);
	    this.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(870, 462);
		this.setContentPane(getJContentPane());
		this.setTitle("JFrame");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			help3 = new JLabel();
			help3.setBounds(new Rectangle(239, 261, 29, 28));
			help3.setText("");
			help3.setIcon(new ImageIcon((String) s.global.get("installPath") + File.separator + "images/en/questionmark.jpg", ""));
			help2 = new JLabel();
			help2.setBounds(new Rectangle(238, 229, 30, 30));
			help2.setText("");
			help2.setIcon(new ImageIcon((String) s.global.get("installPath") + File.separator + "images/en/questionmark.jpg", ""));
			help1 = new JLabel();
			help1.setBounds(new Rectangle(238, 198, 32, 29));
			help1.setText("");
			help1.setIcon(new ImageIcon((String) s.global.get("installPath") + File.separator + "images/en/questionmark.jpg", ""));
			help = new JLabel();
			help.setBounds(new Rectangle(237, 170, 32, 25));
			help.setText("");
			help.setIcon(new ImageIcon((String) s.global.get("installPath") + File.separator + "images/en/questionmark.jpg", ""));
			jLabel4 = new JLabel();
			jLabel4.setBounds(new Rectangle(69, 262, 140, 26));
			jLabel4.setText("Output Feedback (OFB)");
			jLabel4.setForeground(c);
			jLabel3 = new JLabel();
			jLabel3.setBounds(new Rectangle(69, 232, 135, 25));
			jLabel3.setText("Cipher Feedback (CFB)");
			jLabel3.setForeground(c);
			jLabel2 = new JLabel();
			jLabel2.setBounds(new Rectangle(69, 199, 164, 28));
			jLabel2.setText("Cipher-block Chaining (CBC)");
			jLabel2.setForeground(c);
			jLabel1 = new JLabel();
			jLabel1.setBounds(new Rectangle(69, 170, 164, 25));
			jLabel1.setText("Electronic Codebook (ECB)");
			jLabel1.setForeground(c);
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(37, 33, 355, 33));
			jLabel.setText("Please select the mode of operation that you want to encrypt");
			jLabel.setForeground(c);
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(getJRadioButton(), null);
			jContentPane.add(getJRadioButton1(), null);
			jContentPane.add(getJRadioButton2(), null);
			jContentPane.add(getJRadioButton3(), null);
			jContentPane.add(jLabel1, null);
			jContentPane.add(jLabel2, null);
			jContentPane.add(jLabel3, null);
			jContentPane.add(jLabel4, null);
			jContentPane.setBackground(Color.WHITE);
			jContentPane.add(help, null);
			jContentPane.add(help1, null);
			jContentPane.add(help2, null);
			jContentPane.add(help3, null);
			jContentPane.add(getJTabbedPane(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jTable	
	 * 	
	 * @return javax.swing.JTable	
	 */
	
	String[] a = {"a","b","c","d"};

	private JRadioButton jRadioButton = null;

	private JRadioButton jRadioButton1 = null;

	private JRadioButton jRadioButton2 = null;

	private JRadioButton jRadioButton3 = null;

	private JLabel jLabel1 = null;

	private JLabel jLabel2 = null;

	private JLabel jLabel3 = null;

	private JLabel jLabel4 = null;

	private JLabel help = null;

	private JLabel help1 = null;

	private JLabel help2 = null;

	private JLabel help3 = null;

	private JTabbedPane jTabbedPane = null;
	
	private JPanel tabpanel = null;


	/**
	 * This method initializes jRadioButton	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButton() {
		if (jRadioButton == null) {
			jRadioButton = new JRadioButton();
			jRadioButton.setBounds(new Rectangle(42, 172, 21, 21));
		}
		return jRadioButton;
	}

	/**
	 * This method initializes jRadioButton1	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButton1() {
		if (jRadioButton1 == null) {
			jRadioButton1 = new JRadioButton();
			jRadioButton1.setBounds(new Rectangle(41, 201, 19, 24));
		}
		return jRadioButton1;
	}

	/**
	 * This method initializes jRadioButton2	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButton2() {
		if (jRadioButton2 == null) {
			jRadioButton2 = new JRadioButton();
			jRadioButton2.setBounds(new Rectangle(40, 235, 25, 23));
		}
		return jRadioButton2;
	}

	/**
	 * This method initializes jRadioButton3	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButton3() {
		if (jRadioButton3 == null) {
			jRadioButton3 = new JRadioButton();
			jRadioButton3.setBounds(new Rectangle(40, 264, 22, 21));
		}
		return jRadioButton3;
	}

	/**
	 * This method initializes jTabbedPane	
	 * 	
	 * @return javax.swing.JTabbedPane	
	 */
	private JTabbedPane getJTabbedPane() {
		if (jTabbedPane == null) {
			jTabbedPane = new JTabbedPane();
			jTabbedPane.setBounds(new Rectangle(28, 129, 369, 200));
			
		}
		return jTabbedPane;
	}
	


	/**
	 * This method initializes jTabbedPane	
	 * 	
	 * @return javax.swing.JTabbedPane	
	 */


}  //  @jve:decl-index=0:visual-constraint="10,10"
